package com.tuling.singleton;

public class UserSingleton {
    private UserSingleton(){

    }

    static enum UerSingletonEnum{
        INSTANCE;
        private final UserSingleton userSingleton;

        UerSingletonEnum() {
            this.userSingleton = new UserSingleton();
        }

        private UserSingleton getInstance(){
            return userSingleton;
        }
    }

    public static UserSingleton getInstance(){
        return UerSingletonEnum.INSTANCE.getInstance();
    }

}
